/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package javaapplication1;
import com.netcracker.ejb.core.AttributeValue;
import com.netcracker.ejb.core.ILoadingService;
import com.netcracker.ejb.core.NCCoreInternals;
import com.netcracker.ejb.core.NCObject;
import com.netcracker.framework.jdbc.ResultSetHandler;
import java.math.BigInteger;
import java.rmi.RemoteException;
import java.sql.ResultSet;
import java.sql.SQLException;
/**
 *
 * @author user
 */
public class JavaApplication1 {
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws RemoteException {
        // TODO code application logic here
        NCCoreInternals.jdbcInstance().executeSelect("select * from dual", new Object[][] {{}}, new com.netcracker.core.pretty.ResultSetHandler() {

            @Override
            public Object onResultSet(ResultSet rs) throws SQLException {
                throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
            }
        });
        
        BigInteger nco_id = new BigInteger("0");
        NCObject nco = ILoadingService.BEANS.findByID(nco_id);        
        
       String someValue = nco.getParameter(new BigInteger("5012870777013835391")).getValue();
    }
}
